<template>
  <div class="search">
    <van-search
    @click="$router.push('/search')"
      v-model="value"
      shape="round"
      background="#F596AA"
      placeholder="请输入搜索关键词"
    />
    <van-icon name="more" class-prefix="icon" size="25" />
  </div>
</template>

<script>
export default {
  name: 'search',
  data () {
    return {
      value: ''
    }
  }
}
</script>

<style lang="scss" scoped>
.search {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  width: 100%;
  background: #f596aa;
  .van-search {
    flex: 1;
  }
  .icon {
    display: flex;
    padding-right: 5px;
    align-items: center;
  }
}
</style>
